import axios from 'axios'

// 第三方链接
export function search(keyword, pageSize, page) {
  const url = 'https://v1.itooi.cn/netease/search'

  const data = {
    keyword: keyword,
    type: 'song',
    pageSize: pageSize,
    page: page
  }

  return axios.get(url, {
    params: data
  }).then((res) => {
    return Promise.resolve(res.data)
  })
}